package com.example.auth.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.auth.model.entity.SysDepartment;
import com.example.auth.model.vo.DepartmentTreeVo;

import java.util.List;

/**
 * 部门管理服务接口
 */
public interface SysDepartmentService extends IService<SysDepartment> {
    
    /**
     * 获取部门树形结构
     */
    List<DepartmentTreeVo> getDepartmentTree();
    
    /**
     * 根据ID获取部门及其所有子部门
     */
    List<SysDepartment> getDepartmentWithChildren(Long departmentId);
} 